<!--
    要求
    1. 引用base.html
    2. 修改title和article两个内容
    3. 使用form，method使用POST

-->
{% extends 'base.html' %}
{% block title %}
修改用户
{% endblock %}
{% block article %}
<div>
    <form action="{% url 'user:update' user.id %}" method="post">
    {% csrf_token %}
        <div class="form-group" >
            <label for="username" class="col-sm-1 control-label">用户名</label>
            <div class="col-sm-2">
                <input class="form-control"  type="text"  placeholder="请输入用户名" name="username">
            </div>
        </div>
        <br>
        <div class="form-group" >
            <br>
            <label for="password" class="col-sm-1 control-label">密码</label>
            <div class="col-sm-2">
                <input class="form-control"  type="password" placeholder="请输入密码" name="password">
            </div>
        </div>
        <br>
        <div class="form-group" >
            <label for="age" class="col-sm-1 control-label">年龄</label>
            <div class="col-sm-2">
                <input class="form-control"  type="text" placeholder="请输入年龄" name="age">
            </div>
        </div>
        <br>
        <div class="form-group" >
            <label for="email" class="col-sm-1 control-label">邮箱</label>
            <div class="col-sm-2">
                <input class="form-control"  type="text" placeholder="请输入邮箱" name="email">
            </div>
        </div>
        <br>
        <div class="form-group" >
            <div class="col-sm-offset-1 col-sm-10">
                <button type="submit" class="btn btn-default" >修改</button>

            </div>
        </div>
    </form>
</div>
{% endblock %}